package com.qf.mapper;

import com.qf.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 金园
 * @create 2022/4/27
 * @Description
 * @className UserMapper
 * @packageName com.qf.mapper.mappers
 */
public interface UserMapper {
    List<User> queryAll();

    User queryById(@Param("id") int id);

    Long totalCount();

    List<User> queryLike(String name);


    void insert(User user);

    void update(User user);

    void delete(int id);

}
